package com.itheima.service;

import com.github.pagehelper.Page;
import com.itheima.pojo.Link;

import java.util.List;
import java.util.Map;

public interface LinkService {


    void add(Link link);

    void delete(Link link);

    void edit(Link link);

    void stick(Link link);

    Page<Link> getList(Map<String, Object> searchMap);
    
    /**
     * @Author: pengzheng
     * @Description: 通过pagesize获取友链列表
     * @Date: 9:33 2020/8/7
     * @Param pageSize: 
     * @return: java.util.List<com.itheima.pojo.Link> 
     */
    List<Link> getListByPageSize(Integer pageSize);
    
    /**
     * @Author: pengzheng
     * @Description: 增加友情链接点击数
     * @Date: 10:29 2020/8/7
     * @Param uid: 
     * @return: void 
     */
    void addLinkCount(String uid);


}
